package com.song.ejf.service;

import java.util.List;
import java.util.Map;

import com.song.ejf.page.Page;
import com.song.ejf.pojo.SResource;

public interface ResourceService {
	/**
	 * 分页加载资源.
	 * @param page
	 * @param resName
	 * @param resUrl
	 * @throws Exception
	 */
	public void loadResourcePage(Page page,String resName,String resUrl) throws Exception;
	/**
	 * 删除资源
	 * @param checkItems
	 * @return
	 * @throws Exception
	 */
	public boolean delResource(String[] checkItems) throws Exception;
	/**
	 * 添加或更新资源
	 * @param resource
	 * @throws Exception
	 */
	public void saveOrUpdateResource(SResource resource) throws Exception;
	/**
	 * 根据资源id加载资源.
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public SResource findResourceById(String id) throws Exception;
	/**
	 * 加载所有资源.
	 * @return
	 * @throws Exception
	 */
	public List<Map<String, String>> loadAllRes() throws Exception;
}
